{extend name="base" /}
{block name="header_top"}
{include file="header-top" /}
{include file="header-nav" /}
{/block}
{block name="body"}
<div class="width-out clearfix">
    <div class="detail-con">
        <div class="detail-con-detail">
            <div class="detail-con-header d-flex justify-content-between align-items-start border-bottom">
                <div>
                    <h1 class="text-ellipsis-2" id="historyTitle" data-id="{$item.id}" data-type="content"><a class="text-dark font-20 detail-title font-weight-bold" href="{:url('/zy-' . $item['id'])}">{$item.title}</a></h1>
                </div>
                {neq name="$user_info" value=""}
                    <button class="btn btn-danger flex-shrink-0 d-block detail-download-btn download-action" data-id="{$item.id}" >下载文档</button>
                {else}
                    <button class="btn btn-danger flex-shrink-0 d-block detail-download-btn login-modal" data-target="#loginModal" data-toggle="modal">下载文档</button>
                {/neq}
            </div>

            <!--  已转码，svg图片-->
            <div class="detail-con-con detail-con-img">
                {$item | showPreviewImage | raw}
                <div class="text-center" id="encodeDownloadTxt">
                    <a class="text-warning" href="{:url('/vip')}">开通VIP免费下载全站资料 ></a>
                </div>
            </div>
        </div>
        <div class="detail-con-download">
            <div class="d-flex justify-content-between align-items-center mb-4">
                <div class="d-flex align-items-center">
                    <div class="btn-features-box">
                        <button type="button" class="btn btn-light article-collection">
                            <i class="iconfont">&#xe70a;</i>
                            <span>收藏</span>
                        </button>

                    </div>
                    <div class="btn-features-box ml-3">
                        <button type="button" class="btn btn-light" data-toggle="modal" data-target="#reportModal">
                            <i class="iconfont">&#xe607;</i>
                            <span>举报</span>
                        </button>

                    </div>
                    <div class="btn-features-box ml-3">
                        <a class="btn btn-light article-state" href="javascript:;">
                            <i class="iconfont">&#xe600;</i>
                            <span>申诉</span>
                        </a>

                    </div>
                    <div class="btn-features-box ml-3">
                        <button type="button" class="btn btn-light article-share sharePop">
                            <i class="iconfont">&#xe706;</i>
                            <span>分享</span>
                        </button>

                    </div>
                </div>
                {neq name="$user_info" value=""}
                <button class="btn btn-danger flex-shrink-0 d-block detail-download-btn download-action" data-id="{$item.id}" >下载文档</button>
                {else}
                <button class="btn btn-danger flex-shrink-0 d-block detail-download-btn login-modal" data-target="#loginModal" data-toggle="modal">下载文档</button>
                {/neq}
            </div>
            <div class="text-secondary font-14">
                温馨提示： <br>
                1. 部分包含数学公式或PPT动画的文件，查看预览时可能会显示错乱或异常，文件下载后无此问题，请放心下载。<br>
                2. 本文档由用户上传，版权归属用户，{$site_info.site_title}负责整理代发布。如果您对本文档版权有争议请及时联系客服。<br>
                3. 下载前请仔细阅读文档内容，确认文档内容符合您的需求后进行下载，若出现内容与标题不符可向本站投诉处理。<br>
                4. 下载文档时可能由于网络波动等原因无法下载或下载错误，付费完成后未能成功下载的用户请联系客服处理。 <br>
                网站客服：{$site_info.qq}

            </div>
        </div>

        <div class="detail-gg"><img src="__IMAGES__/ad666.png"></div>

        <div class="detail-introduction pb-4">
            <div class="d-flex align-items-center justify-content-between border-bottom py-2">
                <h5 class="font-16">资料简介</h5>
                <button class="btn btn-light collapsed" id="detailIntroductionCol"><span>展开</span>
                    <div class="rotate-throw"></div>
                </button>
            </div>
            <div class="pt-4 text-secondary font-14 detail-introduction-hide overflow-hidden" id="introductionBox">
                <div class="introductionBoxInner">
                    {$item.content | raw}
                </div>
            </div>
        </div>

        <div class="detail-yourlike">
            <div class="border-bottom py-2">
                <h5 class="font-16">你可能关注的文档</h5>
            </div>
            <ul class="row font-14" id="mayBeFllowArticle">

                {random_doc_list limit="8" cid="$item['cid']"}
                <li class="col-6">
                    <a class="text-ellipsis  text-dark py-2" href="{:url('/zy-' . $item.id)}" title="{$item.title}">{$item.title}</a>
                </li>
                {/random_doc_list}

            </ul>
        </div>

    </div>

    <div class="detail-sidebar">
        <a class="detail-sidebar-gg d-block rounded mt-0" href="#">
            <img src="__IMAGES__/4157_1dc319c908b4562779913c704387b8c6.jpeg?607">
        </a>
        <div id="columnDetailSiderRight">
            <div class="detail-yourlike pb-2">
                <div class="border-bottom py-2">
                    <h5 class="font-16">推荐资源</h5>
                </div>
                <ul class="font-14 like-list">
                    {random_doc_list limit="8" cid="$item['cid']"}
                    <li>
                        <a class="text-ellipsis-2  text-dark" href="{:url('/zy-' . $item.id)}" title="{$item.title}">{$item.title}</a>
                    </li>
                    {/random_doc_list}
                </ul>
            </div>
            <a class="detail-sidebar-gg d-block rounded" href="/">
                <img src="__IMAGES__/4157_e8efbc0ff64fa3699992b964c2722a5a.png">
            </a>
        </div>
    </div>
</div>
{/block}